package com.ruoyi.labdanger.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.ruoyi.labdanger.domain.LabApplyPurchase;
import com.ruoyi.labdanger.service.ILabApplyPurchaseDetailsService;
import com.ruoyi.labdata.service.EndTaskListener;
@Component
public class PurchaseEndTaskListener extends EndTaskListener<LabApplyPurchase>{
	@Autowired
	private ILabApplyPurchaseDetailsService labApplyPurchaseDetailsService;

	@Override
	public int doTask(Long instanceId) {
		labApplyPurchaseDetailsService.updateApproval(instanceId);
		return 1;
	}

}
